package com.ruoyi.pingan.fymodule.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 订单售后
 * </p>
 *
 * @author wangy
 * @since 2025-08-13
 */
@Data
@TableName("sxo_order_aftersale")
@Schema(name = "SxoOrderAftersale对象", description = "订单售后")
public class SxoOrderAftersale implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @Schema(description = "订单号")
    @TableField("order_no")
    private String orderNo;

    @Schema(description = "订单详情id")
    @TableField("order_detail_id")
    private String orderDetailId;

    @Schema(description = "订单id")
    @TableField("order_id")
    private String orderId;

    @Schema(description = "商品id")
    @TableField("goods_id")
    private String goodsId;

    @Schema(description = "用户id")
    @TableField("user_id")
    private String userId;

    @Schema(description = "系统类型（默认 default, 其他按照SYSTEM_TYPE常量类型）")
    @TableField("system_type")
    private String systemType;

    @Schema(description = "状态（0待确认, 1待退货, 2待审核, 3已完成, 4已拒绝, 5已取消 6：平安申请退款中）")
    @TableField("status")
    private Integer status;

    @Schema(description = "业务类型（0仅退款, 1退货退款）")
    @TableField("type")
    private Integer type;

    @Schema(description = "退款类型（0原路退回, 1退至钱包, 2手动处理）")
    @TableField("refundment")
    private Integer refundment;

    @Schema(description = "申请原因")
    @TableField("reason")
    private String reason;

    @Schema(description = "退货数量")
    @TableField("number")
    private Integer number;

    @Schema(description = "退款金额")
    @TableField("price")
    private BigDecimal price;

    @Schema(description = "退款说明")
    @TableField("msg")
    private String msg;

    @Schema(description = "凭证图片（一维数组json存储）")
    @TableField("images")
    private String images;

    @Schema(description = "拒绝原因")
    @TableField("refuse_reason")
    private String refuseReason;

    @Schema(description = "快递名称")
    @TableField("express_name")
    private String expressName;

    @Schema(description = "快递单号")
    @TableField("express_number")
    private String expressNumber;

    @Schema(description = "申请时间")
    @TableField("apply_time")
    private String applyTime;

    @Schema(description = "确认时间")
    @TableField("confirm_time")
    private String confirmTime;

    @Schema(description = "退货时间")
    @TableField("delivery_time")
    private String deliveryTime;

    @Schema(description = "审核时间")
    @TableField("audit_time")
    private String auditTime;

    @Schema(description = "取消时间")
    @TableField("cancel_time")
    private String cancelTime;

    @Schema(description = "添加时间")
    @TableField("add_time")
    private String addTime;

    @Schema(description = "更新时间")
    @TableField("upd_time")
    private String updTime;

    @Schema(description = "申请平安状态 0：未申请 1：申请中 2：可退款 3：不可退款 4：已关闭 5：已完成")
    @TableField("apply_safe_status")
    private String applySafeStatus;
}
